package com.hui10.mediaplayer.sigleton;

/**
 * Author: Created by lucus on 2019/5/24.
 * E-mail: mcphilex1989@gmail.com
 * Tel: 15652608401
 * 饿汉式单例设计模式
 */
public class SingletonDemo {

    private SingletonDemo(){}

    private static SingletonDemo singletonDemo = new SingletonDemo();

    public static SingletonDemo getSingletonDemo(){
        return singletonDemo;
    }

}
